﻿using System;
using System.Collections.Generic;

using System.Text;

namespace TimKen.DataEntity
{
    /// <summary>
    /// 客户实体类
    /// </summary>
    public class Customer
    {
        public Customer()
        { }
        #region Model
        private int _customerid;
        private string _cardcode;
        private int? _customertype;
        private string _customerforeignname;
        private string _customername;
        private string _contactperson;
        private string _telephone;
        private string _mobile;
        private string _fax;
        private string _address;
        private string _country;
        private string _province;
        private string _city;
        private string _county;
        private decimal? _creditlimit;
        private string _currency;
        private decimal? _currentaccountbalance;
        private decimal? _opendeliverynotesbalance;
        private decimal? _openordersbalance;
        private decimal? _ecordersbalance;
        private decimal? _discountpercent;
        private decimal? _taxrate;
        private int? _taxclassid;
        private string _email;
        private int? _languageid;
        private int? _salespersoncode;
        private string _shippingtype;
        private string _shiptodefault;
        private bool _frozen;
        private DateTime? _frozenfrom;
        private string _frozenremarks;
        private DateTime? _frozento;
        private bool _valid;
        private DateTime? _validfrom;
        private string _validremarks;
        private DateTime? _validto;
        private string _notes;
        private string _description;
        /// <summary>
        /// 客户编号
        /// </summary>
        public int CustomerID
        {
            set { _customerid = value; }
            get { return _customerid; }
        }
        /// <summary>
        /// 客户在B1中的唯一性编号
        /// </summary>
        public string CardCode
        {
            set { _cardcode = value; }
            get { return _cardcode; }
        }
        /// <summary>
        /// 客户类型（正式客户等）
        /// </summary>
        public int? CustomerType
        {
            set { _customertype = value; }
            get { return _customertype; }
        }
        /// <summary>
        /// 客户名称（外文）
        /// </summary>
        public string CustomerForeignName
        {
            set { _customerforeignname = value; }
            get { return _customerforeignname; }
        }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName
        {
            set { _customername = value; }
            get { return _customername; }
        }
        /// <summary>
        /// 联系人
        /// </summary>
        public string ContactPerson
        {
            set { _contactperson = value; }
            get { return _contactperson; }
        }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string Telephone
        {
            set { _telephone = value; }
            get { return _telephone; }
        }
        /// <summary>
        /// 手机号码
        /// </summary>
        public string Mobile
        {
            set { _mobile = value; }
            get { return _mobile; }
        }
        /// <summary>
        /// 传真号码
        /// </summary>
        public string Fax
        {
            set { _fax = value; }
            get { return _fax; }
        }
        /// <summary>
        /// 账单地址
        /// </summary>
        public string Address
        {
            set { _address = value; }
            get { return _address; }
        }
        /// <summary>
        /// 国家
        /// </summary>
        public string Country
        {
            set { _country = value; }
            get { return _country; }
        }
        /// <summary>
        /// 省份
        /// </summary>
        public string Province
        {
            set { _province = value; }
            get { return _province; }
        }
        /// <summary>
        /// 城市
        /// </summary>
        public string City
        {
            set { _city = value; }
            get { return _city; }
        }
        /// <summary>
        /// 县
        /// </summary>
        public string County
        {
            set { _county = value; }
            get { return _county; }
        }
        /// <summary>
        /// 信用额度
        /// </summary>
        public decimal? CreditLimit
        {
            set { _creditlimit = value; }
            get { return _creditlimit; }
        }
        /// <summary>
        /// 币别
        /// </summary>
        public string Currency
        {
            set { _currency = value; }
            get { return _currency; }
        }
        /// <summary>
        /// 账号额度
        /// </summary>
        public decimal? CurrentAccountBalance
        {
            set { _currentaccountbalance = value; }
            get { return _currentaccountbalance; }
        }
        /// <summary>
        /// 已发货额度
        /// </summary>
        public decimal? OpenDeliveryNotesBalance
        {
            set { _opendeliverynotesbalance = value; }
            get { return _opendeliverynotesbalance; }
        }
        /// <summary>
        /// 订单额度
        /// </summary>
        public decimal? OpenOrdersBalance
        {
            set { _openordersbalance = value; }
            get { return _openordersbalance; }
        }
        /// <summary>
        /// EC订单额度
        /// </summary>
        public decimal? ECOrdersBalance
        {
            set { _ecordersbalance = value; }
            get { return _ecordersbalance; }
        }
        /// <summary>
        /// 折扣率
        /// </summary>
        public decimal? DiscountPercent
        {
            set { _discountpercent = value; }
            get { return _discountpercent; }
        }
        /// <summary>
        /// 税率
        /// </summary>
        public decimal? TaxRate
        {
            set { _taxrate = value; }
            get { return _taxrate; }
        }
        /// <summary>
        /// 税种类别
        /// </summary>
        public int? TaxClassID
        {
            set { _taxclassid = value; }
            get { return _taxclassid; }
        }
        /// <summary>
        /// 电子邮件地址
        /// </summary>
        public string Email
        {
            set { _email = value; }
            get { return _email; }
        }
        /// <summary>
        /// 语言类别
        /// </summary>
        public int? LanguageID
        {
            set { _languageid = value; }
            get { return _languageid; }
        }
        /// <summary>
        /// 业务员编码
        /// </summary>
        public int? SalesPersonCode
        {
            set { _salespersoncode = value; }
            get { return _salespersoncode; }
        }
        /// <summary>
        /// 货运类别
        /// </summary>
        public string ShippingType
        {
            set { _shippingtype = value; }
            get { return _shippingtype; }
        }
        /// <summary>
        /// 发货地址
        /// </summary>
        public string ShipToDefault
        {
            set { _shiptodefault = value; }
            get { return _shiptodefault; }
        }
        /// <summary>
        /// 是否冻结
        /// </summary>
        public bool Frozen
        {
            set { _frozen = value; }
            get { return _frozen; }
        }
        /// <summary>
        /// 冻结起始日期
        /// </summary>
        public DateTime? FrozenFrom
        {
            set { _frozenfrom = value; }
            get { return _frozenfrom; }
        }
        /// <summary>
        /// 冻结备注
        /// </summary>
        public string FrozenRemarks
        {
            set { _frozenremarks = value; }
            get { return _frozenremarks; }
        }
        /// <summary>
        /// 冻结结束日期
        /// </summary>
        public DateTime? FrozenTo
        {
            set { _frozento = value; }
            get { return _frozento; }
        }
        /// <summary>
        /// 是否有效
        /// </summary>
        public bool Valid
        {
            set { _valid = value; }
            get { return _valid; }
        }
        /// <summary>
        /// 生效日
        /// </summary>
        public DateTime? ValidFrom
        {
            set { _validfrom = value; }
            get { return _validfrom; }
        }
        /// <summary>
        /// 有效性说明
        /// </summary>
        public string ValidRemarks
        {
            set { _validremarks = value; }
            get { return _validremarks; }
        }
        /// <summary>
        /// 失效日期
        /// </summary>
        public DateTime? ValidTo
        {
            set { _validto = value; }
            get { return _validto; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Notes
        {
            set { _notes = value; }
            get { return _notes; }
        }
        /// <summary>
        /// 描述，同FreeText
        /// </summary>
        public string Description
        {
            set { _description = value; }
            get { return _description; }
        }
        #endregion Model

    }
}

